import Vue from 'vue'
import App from './App.vue'
import router from './router'
import MintUI from 'mint-ui'
import'mint-ui/lib/style.css'
import './fonts/iconfont.css'
import axios  from "axios"
//引入vuex组件
import Vuex from 'vuex'
Vue.use(Vuex);
//创建vuex实例对象
var store = new Vuex.Store({
  state:{count:0},
  mutations:{
    increatment(state){
      state.count++;
    }
  },
  getters:{
    getCount(state){
      return state.count;
    }
  }
});


Vue.use(MintUI);

axios.defaults.withCredentials = true;
axios.defaults.baseURL="http://127.0.0.1:3000/";

Vue.prototype.axios = axios;

Vue.config.productionTip = false


new Vue({
  router,
  render: h => h(App),
  store
}).$mount('#app')
